<!-- 轮播图组件 -->
<template>
  <div>
      <div class="slider">
          <img :src="datas[0].src" alt="">
      </div>
      <slot></slot>
  </div>
</template>

<script>
export default {
  data () {
    return {
    };
  },
  props:{
    datas:Array
  },

  components: {},

  computed: {},

  methods: {}
}

</script>
<style scoped>
.slider{
    width: 100%;
    height: 350px;
    margin: 0 auto;
    overflow: hidden;
}
.slider img{
    width: 100%;
}
</style>